//
//  DebugBaseViewController.h
//  YK_DebugManager
//
//  Created by edward on 2021/1/14.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

#define debug_startBar_Height [UIApplication sharedApplication].statusBarFrame.size.height
#define debug_navBar_Height self.navigationController.navigationBar.frame.size.height
#define debug_top_Height ((debug_navBar_Height) + (debug_startBar_Height))
#define debug_bottom_safe UIApplication.sharedApplication.keyWindow.rootViewController.view.safeAreaInsets.bottom
#define debug_screenW [UIScreen mainScreen].bounds.size.width
#define debug_screenH [UIScreen mainScreen].bounds.size.height

NS_INLINE CGFloat debug_lengthWithScale(CGFloat originalLength) {
    CGFloat scale = 375.0 / debug_screenW;
    return (originalLength / scale > originalLength ? originalLength:originalLength / scale);
}

@interface DebugBaseViewController : UIViewController

@end

NS_ASSUME_NONNULL_END
